package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SequenceGeneratorIncrementByOption implements BasicSequenceGeneratorOption {

    private int beginIndex;
    private int endIndex;
    private SignedNumericLiteral sequenceGeneratorIncrement;

    public SequenceGeneratorIncrementByOption(int beginIndex, SignedNumericLiteral sequenceGeneratorIncrement) {
        this.beginIndex = beginIndex;
        this.endIndex = sequenceGeneratorIncrement.getEndIndex();
        this.sequenceGeneratorIncrement = sequenceGeneratorIncrement;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SignedNumericLiteral getSequenceGeneratorIncrement() {
        return sequenceGeneratorIncrement;
    }

}
